/**
 * This file is part of the CAKIS project.
 * 
 * Copyright (c) 2009-2010 - Florian Arndt, Christian Kerl
 * 
 * @license GNU Lesser General Public License v3 <http://www.opensource.org/licenses/lgpl-3.0.html>
 * @since   24.04.2010
 * @version SVN: $Id: ProductType.java 115 2010-05-09 12:30:12Z christian-kerl@web.de $
 */
package org.cakis.server.model;

import java.io.Serializable;
import java.util.List;

import javax.persistence.Entity;
import javax.persistence.OneToMany;
import javax.persistence.OrderBy;

/**
 * ProductType
 *
 * @author Christian Kerl
 */
@Entity
public class ProductType extends BaseProduct implements Serializable {
    private static final long serialVersionUID = 1L;

    private List<Product> products;

    @OneToMany(mappedBy = "type")
    @OrderBy("name")
    public List<Product> getProducts() {
        return products;
    }

    public void setProducts(List<Product> products) {
        this.products = products;
    }
}
